HTML Forms

HTML - Hypertext Markup Language

Created: 2022-12-17


The <form> element is a container for different types of input elements, such as:

  • text fields, checkboxes,
  • radio buttons, submit buttons, etc.

Form element can have attributes
<form action="/register" method="post">

<input> element

<input type="text">
Displays a single-line text input field

<input type="radio">
Displays a radio button (for selecting one of many choices)

<input type="checkbox">
Displays a checkbox (for selecting zero or more of many choices)

<input type="submit">
Displays a submit button (for submitting the form)

<input type="button">
Displays a clickable button